import { createI18n } from 'vue-i18n';
import EN from './en.js';
import ZH from './zh';

const messages = { zh: ZH, en: EN };

const i18n = createI18n({
  locale: 'zh',
  fallbackLocale: 'en',
  messages,
});

export const langs = [
  { key: 'zh', title: '中文' },
  { key: 'en', title: 'English' },
];

export default i18n;
